package Player;

/**
 * Write a description of class BlockBreakerListener here.
 * 
 * @author The_MHMoritz3
 * @version 1.0
 * @date 19.10.2014
 */

import net.canarymod.hook.Hook;
import net.canarymod.hook.HookHandler;
import net.canarymod.hook.player.ConnectionHook;
import net.canarymod.plugin.PluginListener;
import net.canarymod.hook.player.BlockDestroyHook;
import net.canarymod.api.world.blocks.BlockType;

public class BlockBreakerListener implements PluginListener
{
   @HookHandler
   public void blockDestroy(BlockDestroyHook hook)
   {       
       switch(hook.getBlock().getType().getId())
       {
           case 56:
           hook.getPlayer().chat("I found Diamonds");
           break;
           case 15:
           hook.getPlayer().chat("I found Ironore");
           break;
           case 16:
           hook.getPlayer().chat("I found Coal");
           break;
           case 14:
           hook.getPlayer().chat("I found GoldOre");
           break;
           case 73:
           hook.getPlayer().chat("I found Redstone");
           break;
           case 21:
           hook.getPlayer().chat("I found Lapizlazuli");
           break;
           case 129:
           hook.getPlayer().chat("I found Emerald");
           break;
       }
   }
}
